﻿using System.Collections.Generic;

namespace LazyMapper.Tests.LazyMapper.Core
{
    internal static class SampleHelper
    {
        public static IEnumerable<int> SampleSizes()
        {
            const int i = 10;
            var val = i;
            while (val < int.MaxValue / i)
            {
                yield return val;
                val = val * i;
            }
        }

        public static IEnumerable<int> Samples(int size)
        {
            int count = 0;
            while (count < size)
            {
                yield return count;
                count++;
            }
        }
    }
}